/***********************************************************

 The information in this document is proprietary
 to VeriSign and the VeriSign Product Development.
 It may not be used, reproduced or disclosed without
 the written approval of the General Manager of
 VeriSign Product Development.

 PRIVILEGED AND CONFIDENTIAL
 VERISIGN PROPRIETARY INFORMATION
 REGISTRY SENSITIVE INFORMATION

 Copyright (c) 2010 VeriSign, Inc.  All rights reserved.

 ***********************************************************/
package com.ordern.classification;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author pdash
 * 
 */
public class Domain extends Page {

	String name;

	DomainType domainType = DomainType.NOT_DETERMINED;
	
	Set<String> tags = null;
	
	public void addTags(String st)
	{
		if(tags==null)
		{
			tags = new HashSet<String>();
		}
		tags.add(st);
	}

	public Set<String> getTags() {
		return tags;
	}

	public void setTags(Set<String> tags) {
		this.tags = tags;
	}

	public DomainType getDomainType() {
		return domainType;
	}

	public void setDomainType(DomainType domainType) {
		this.domainType = domainType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	List<Page> childPages = new ArrayList<Page>();

	public List<Page> getChildPages() {
		return childPages;
	}

	public void addChildPage(Page p) {
		if (childPages == null) {
			childPages = new ArrayList<Page>();
		}
		childPages.add(p);
	}

	public void setChildPages(List<Page> childPages) {
		this.childPages = childPages;
	}
	
	public String toString()
	{
		return name+":"+domainType;
	}

}
